/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.hanze.web.ws;

import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;
import nl.hanze.web.session.DistTransWebSBLocal;

/**
 *
 * @author Herman
 */
@WebService(serviceName = "DistTransWebWS")
@Stateless
public class DistTransWebWS {
    @EJB
    private DistTransWebSBLocal ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "transfer")
    public boolean transfer(@WebParam(name = "fromRekening") int fromRekening, @WebParam(name = "toRekening") int toRekening, @WebParam(name = "amount") int amount) {
        return ejbRef.transfer(fromRekening, toRekening, amount);
    }
    
}
